@ layout("/layout.html"){
<div class="container border">
    <form action="${base}/topic/save" method="post">

        <div class="padding20" style="width:50%;margin-left:22%">
            <br>
            <div>Title</div>

            <div class="input-control text" style="width:400px;">
                <input type="text" name="topic.content"/>
                <button class="btn-clear"></button>
            </div>

            <br>
            <div>Content</div>

            @ include("/editer.html", {"textarea_name" : "post.content", "textarea_content" : post.content!}){}


            <div style="margin-left:30%">Model List</div>

            <div class="padding20">

                <div class="input-control select" style="width:20%;margin-left:37%">
                    <select name="topic.moduleID">
                        @ for(vv in moduleList!){
                        <option value="${vv.id}" ${isSame(vv.id!, topic.moduleID!, "selected='selected'")}>${vv.name!}
                        </option>
                        @ }
                    </select>
                </div>
            </div>

            <div class="padding20">
                <input type="submit" class="large info" value="Submit" style="width:20%;margin-left:40%">
            </div>

        </div>

    </form>
</div>
@}